/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __LPY2_H
#define __LPY2_H

#include "math.h"

typedef struct _lpf2_t_
{
    float a1;
    float a2;
    float b0;
    float b1;
    float b2;

    float xn[3];    //上一次的值n
    float yn[2];
} lpf2_t;

#define     M_PI_F           (3.1415926535897f)

void lpf2_init(lpf2_t *hlpf2, float wc,float dt);
float lpf2_apply(lpf2_t *hlpf2, float in);

#endif /* __LPY_H */

/******************* (H) COPYRIGHT 2024 FUYEBING*****END OF FILE************/